# -*- coding: UTF-8 -*-
# @Project ：luffycity 
# @File    ：列表去重.py
# @Author  ：于金龙
# @IDE     ：PyCharm 
# @Date    ：2024/4/17 10:27
# TODO: 一个列表有多个重复的值如何进行去重

list1 = [1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6, 6, 7, 6, 4, 3, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6]
a = []
for i in list1:
    if i not in a:
        a.append(i)
print(a)
